package com.bitejiuyeke.job_publish.utils;

import java.util.Random;

/**
 * @Author 比特就业课
 */

public class VerificationCodeUtils {
    /**
     * 生成一个6位数字的验证码
     * */
    public static String generateVerificationCode() {
        Random random = new Random();
        int i = random.nextInt(999999) + 1;
        String code = String.format("%06d", i);
        return code;
    }
}
